<template>
  <nav>
    <router-link to="/classify">分类</router-link> |
    <router-link to="/food">食材</router-link>
  </nav>
  <Search></Search>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import Search from "../components/Search.vue"

// 根据路由切换动态的设置 索引值  也可以设置 name
const active = ref<number>(0);
</script>

<style scoped></style>@!